import request from "@/utils/http";

/**
 * 获取预付订单(填写订单)
 */
export const getPreOrderAPI = () => {
  return request({
    url: "/member/order/pre",
  });
};
/**
 * 创建订单 
 * @param {Object} data 订单参数
 */
export const createOrderAPI = (data) => {
    return request({
      url: "/member/order",
      method: "POST",
      data,
    });
  };
  
/**
 * 获取订单详情
 */
export const geOrderDetailAPI = (id) => {
    return request({
      url: `/member/order/${id}`,
    });
  };